import 'package:get/get.dart';
import 'package:hotfil_pub_web/service/auth.dart';
import 'package:hotfil_pub_web/shared/loading.dart';

class MinePageController extends GetxController {
  MeRes userInfo = MeRes();

  void fetchMinePageData() async {
    startLoading();
    userInfo = await getUserInfoApi();
    stopLoading();
    update();
  }

  @override
  void onInit() {
    fetchMinePageData();
    super.onInit();
  }
}
